package cn.tac.test.spring.mvc.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : tac
 * @date : 21/04/2017
 */

@RestController
@RequestMapping("/demo1/rest")
public class DemoRestController {
    @RequestMapping("index")
    public String index(){
        return "hello world";
    }
}
